<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+
            request.getServerPort()+path+"/";
%>






<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <base href="<%=basePath%>">
    <meta charset="UTF-8">
    <title>Insert title here</title>
    <link rel="stylesheet" type="text/css" href="front/css/studentMain.css">
    <link rel="stylesheet" type="text/css" href="front/css/rank.css">
    <script type="text/javascript" src="front/js/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="js/countAge.js"></script>
    <script type="text/javascript" src="js/changeClazz.js"></script>
    <script type="text/javascript" src="js/initAllClazz.js"></script>
    <script type="text/javascript" src="js/ranklist.js"></script>
</head>
<body>
<c:set var="student" value="${dto.t}"/>
<div class="studentMain">
    <div class="studentInfo">
        <div class="head"><img src="upload/${student.imgsrc}"></div>
        <div class="info"><span class="studentSno">${student.sno}</span></div>
        <div class="info"><span>${student.name}</span><span>${student.sex}</span></div>
        <div class="info"><span>${student.high}</span><span class="countAge">
            <fmt:formatDate value="${student.birthday}" pattern="yyyy-MM-dd"/></span></div>
    </div>


    <div class="studentDetail">
        <div class="myCourse">
            <div class="title">我的成绩</div>
            <hr/>
            <table  class="courseTab">
                <tr><th>选课流水号</th><th>课程号</th><th>课程名</th><th>考试地点</th><th>考试时间</th><th>考试成绩</th></tr>
                <c:forEach items="${student.scs}" var="sc">
                    <tr>
                        <td class="tdForTno">${sc.tno}</td>
                        <td>${sc.scno}</td>
                        <td>${sc.cno}</td>
                        <td>${sc.course.cname}</td>
                        <td>${sc.exampoint}</td>
                        <td>
                            <fmt:formatDate value="${sc.examtime}" pattern="yyyy-MM-dd"/>
                        </td>
                        <td>${sc.score}</td>
                    </tr>
                </c:forEach>
            </table>
            <div class="teacherInfoTitle"></div>
            <div class="teacherInfo"></div>
        </div>
    </div>
<div class="changeClazz">
    <div class="clazzs">
      <select>
      </select>
        <input type="button"  id="changeClazz"  value="转班">
    </div>
    <input type="hidden" class="newCno" value="${student.cno}">

</div>
<div id="ranklist">

</div>
</div>


</body>
</html>